package com.example.photo_sharing.tool;

import android.widget.Button;
import android.widget.ImageButton;
import android.widget.TextView;

public interface FocusLikeCollectTool {

    //点赞图文
    boolean setLike(String shareId,String userId);

    //收藏图文
    boolean setCollect(String shareId,String userId);

    //添加关注
    boolean setFocus(String focusUserId,String userId);

    //取消点赞
    boolean deLike(String likeId);

    //取消收藏
    boolean deCollect(String collectId);

    //取消关注
    boolean deFocus(String userId,String focusUserId);

    //修改相关的控件

    //点赞时修改样式
    boolean setImgLike(ImageButton bt, TextView tv);

    //取消点赞时修改样式
    boolean setImgDelike(ImageButton bt,TextView tv);

    //收藏时修改样式
    boolean setImgCollect(ImageButton bt,TextView tv);

    //取消收藏时修改样式
    boolean setImgDecollect(ImageButton bt,TextView tv);

    //关注时修改样式
    boolean setImgFocus(Button bt);

    //取消关注时修改样式
    boolean setImgDefocus(Button bt);


}
